package cn.baimo.pojo;

import java.io.Serializable;
import java.util.List;

/**
 * ClassName: Hospital
 * Description:医院表
 * date: 2020/5/28 0028 9:45:15
 *
 * @author baimo
 * @since JDK 1.8
 * 医院表（hospital）
 * 字段名	    属性	        约束	注释
 * id	        int	            主键	主键
 * name	        varchar(50)	    非空	医院名称
 * image	    varchar(255)		    图片
 * level	    varchar(50)		        等级（三甲）
 * address	    varchar(255)	非空	地址
 * phone	    varchar(12)		        电话
 * profile	    varchar(50)		        概况
 * intro	    text(1000)		        简介
 * insurance	bit	            非空	医保
 *
 *
 */
public class Hospital implements Serializable {
    private int id;//主键
    private String name;//医院名称
    private String image;//图片
    private String level;//等级
    private String address;//地址
    private String phone;//电话
    private String profile;//概况
    private String intro;//简介
    private int insurance;//医保
    private List<Doctor> doctors;//医生
    private List<Division> divisions;//科室
    private int num;//医生数量

    public int getrNum() {
        return rNum;
    }

    public void setrNum(int rNum) {
        this.rNum = rNum;
    }

    private int rNum;//挂号数量

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public Hospital() {
    }

    public Hospital(int id, String name, String image, String level, String address, String phone, String profile, String intro, int insurance, List<Doctor> doctors, List<Division> divisions) {
        this.id = id;
        this.name = name;
        this.image = image;
        this.level = level;
        this.address = address;
        this.phone = phone;
        this.profile = profile;
        this.intro = intro;
        this.insurance = insurance;
        this.doctors = doctors;
        this.divisions = divisions;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getProfile() {
        return profile;
    }

    public void setProfile(String profile) {
        this.profile = profile;
    }

    public String getIntro() {
        return intro;
    }

    public void setIntro(String intro) {
        this.intro = intro;
    }

    public int getInsurance() {
        return insurance;
    }

    public void setInsurance(int insurance) {
        this.insurance = insurance;
    }

    public List<Doctor> getDoctors() {
        return doctors;
    }

    public void setDoctors(List<Doctor> doctors) {
        this.doctors = doctors;
    }

    public List<Division> getDivisions() {
        return divisions;
    }

    public void setDivisions(List<Division> divisions) {
        this.divisions = divisions;
    }

    @Override
    public String toString() {
        return "Hospital{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", image='" + image + '\'' +
                ", level='" + level + '\'' +
                ", address='" + address + '\'' +
                ", phone='" + phone + '\'' +
                ", profile='" + profile + '\'' +
                ", intro='" + intro + '\'' +
                ", insurance=" + insurance +
                ", doctors=" + doctors +
                ", divisions=" + divisions +
                '}';
    }
}
